package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * @Author by 孙有泽
 * @Date 2024/11/28 22:18
 * @Description 分页查询护理项目的mapper层
 */
@Mapper
public interface NursingProjectMapper {
    /*
     * @author 孙有泽
     * @date 2024/12/2 12:55
     * @description 分页查询护理项目mapper层接口
     */
    Page<NursingProjectVo> getByPage(@Param("name") String name , @Param("status") Integer status);
    /*
     * @author 孙有泽
     * @date 2024/12/4 21:42
     * @description 添加护理项目mapper接口
     */

    void insert(NursingProject nursingProject);
    /*
     * @author 孙有泽
     * @date 2024/12/5 21:20
     * @description 根基id查询护理项目
     */
    NursingProjectVo getById(@Param("id") Long id);
    /*
     * @author 孙有泽
     * @date 2024/12/5 21:22
     * @description 更新护理项目
     */
    void updata(NursingProject nursingProject);
}
